/**
 * 
 */
app.config(['$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider) {
    $urlRouterProvider.otherwise("/list");
    $stateProvider
        .state('list', {
            url: "/list",
            templateUrl: "www/html/list.html",
            controller: "ListCtrl"
        })
        .state('edit', {
            url: "/edit/:id",
            templateUrl: "www/html/add.html",
            controller: "EditCtrl"
        })
        .state('add', {
            url: "/add",
            templateUrl: "www/html/add.html",
            controller: "AddCtrl"
        })
        .state('view', {
            url: "/view/:id",
            templateUrl: "www/html/view.html",
            controller: "ViewCtrl"
        })        
       
}]);
